﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TopProducts.ascx.cs" Inherits="Parts_TopProducts" %>

<div class="top5-block"><h3>Các sản phẩm mua nhiều nhất</h3>    

<% 
    List<TaiLieu> lst = (List<TaiLieu>)Session["MuaNhieus"];

    for (int i = 0; i < lst.Count; i++)
    {
%>

    <li>
        <a class="link floatLeft" href="Product.aspx?ID=<%= lst[i].ProductID %>">
            <span class="number"><%= (i + 1) %>.</span>
            <span class="preview floatLeft"><%= lst[i].ProductName %></span>
        </a>
        <span class="author">
            <a href="Category.aspx?CateID=<%= lst[i].CatID %>"><%= lst[i].DanhMuc.CatName %></a>
        </span>
    </li> 

<% } %>

</div>